<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.0/axios.js"></script>
</head>
<body>
    <script>
        // axios.get('http://39.96.21.48:5588/customer/findAll').then((res)=>{
        //     console.log(res.data.data);
        // })
        
        async function findAll(){
            let res = await axios.get('http://39.96.21.48:5588/customer/findAll')
            let obj = {cusId:res.data.data[0].id}
            findComment(obj)
        }
        async function findComment(obj){
            let res = await axios.get('http://39.96.21.48:5588/comment/findCommentByCus',{params:obj})
            console.log(res.data.data.list);
        }
        findAll();
        
    </script>
</body>
</html>